package com.mybdqn.dao;

import com.mybdqn.pojo.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Mapper Interface UserRole
 * <p>
 * 2017-12-14
 */
public interface UserRoleMapper {

    public UserRole getUserRoleById(@Param(value = "id") Integer id) throws Exception;

    public List<UserRole> getUserRoleListByMap(Map<String, Object> param) throws Exception;

    public Integer getUserRoleRecordCount(Map<String, Object> param) throws Exception;

    public Integer insertUserRole(UserRole userRole) throws Exception;

    public Integer updateUserRole(UserRole userRole) throws Exception;

    public Integer deleteUserRoleById(@Param(value = "id") Integer id) throws Exception;

}